//
//  DBParserAstNode.h
//  parser
//
//  Created by Daniel Braun on 10/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class DBLexerTokenMatch;
@interface DBParserAstNode : NSObject {
	DBParserAstNode *left;
	DBParserAstNode *right;
	DBLexerTokenMatch *tok;
	BOOL leaf;
}

- (id) initWithToken:(DBLexerTokenMatch *) t;

- (id) left;
- (id) right;
- (DBLexerTokenMatch *) tok;
- (BOOL) isLeaf;

- (void) setLeaf:(BOOL)l;
- (void) setLeft:(id)l;
- (void) setRight:(id)r;
- (void) setToken:(DBLexerTokenMatch *) tok;

+ (id) astNodeWithToken:(DBLexerTokenMatch *) t;


@end
